(function($){"use strict";UNCODE.animateSubInside=function(_this,remove){typeof remove!="undefined"&&remove===!0?($(document).trigger("sub-menu-slide-up"),$(".animate_when_almost_visible, .translate_when_almost_visible",_this).each(function(){$(this).removeClass("start_animation").css({"animation-delay":"0s","transition-delay":"0s"})})):($.each($(".translate_when_almost_visible:not(.start_animation), .animate_when_almost_visible:not(.start_animation):not(.t-inside):not(.drop-image-separator), .index-scroll .animate_when_almost_visible, .tmb-media .animate_when_almost_visible:not(.start_animation), .animate_when_almost_visible.has-rotating-text, .custom-grid-container .animate_when_almost_visible:not(.start_animation)",_this),function(index,val){var element=$(val),delayAttr=element.attr("data-delay");delayAttr==undefined&&(delayAttr=0),element.css({"animation-delay":delayAttr+"ms","transition-delay":delayAttr+"ms"}),element.addClass("start_animation")}),document.dispatchEvent(new CustomEvent("sub-menu-slide-down")))},UNCODE.menuSystem=function(){function menuMobile(){var $body=$("body"),scrolltop,$mobileToggleButton=$(".mobile-menu-button, .uncode-close-offcanvas-mobile:not(.vc_element)"),$masthead=$("#masthead"),$menuBlock=$("#uncode-mobile-menu-block"),$box,$el,$el_transp,elHeight,offCanvasAnim,check,animating=!1,stickyMobile=!1,menuClose=new CustomEvent("menuMobileClose"),menuOpen=new CustomEvent("menuMobileOpen");UNCODE.menuOpened=!1,$mobileToggleButton.on("click",function(event){event.stopPropagation();var btn=this;if($(btn).hasClass("overlay-close"))return;event.preventDefault(),$(".overlay-search.open .menu-close-dd",$masthead).trigger("click");if(UNCODE.wwidth<=UNCODE.mediaQuery){$box=$(this).closest(".box-container").find(".main-menu-container:not(.no-mobile):not(.main-wrapper *)"),$el=$(this).closest(".box-container").find(".menu-horizontal-inner:not(.row-brand):not(.main-wrapper *), .menu-sidebar-inner:not(.main-wrapper *)"),$el_transp=$(".menu-absolute.menu-transparent"),UNCODE.isMobile?$(".menu-wrapper.menu-sticky, .menu-wrapper.menu-hide-only, .main-header .menu-sticky-vertical, .main-header .menu-hide-only-vertical, .menu-mobile-centered, .menu-sticky-mobile").length?(stickyMobile=!0,elHeight=window.innerHeight-UNCODE.menuMobileHeight-UNCODE.bodyBorder*2-UNCODE.adminBarHeight+1):(elHeight=0,$.each($box.find("> div"),function(index,val){elHeight+=$(val).outerHeight()})):(elHeight=0,$.each($el,function(index,val){elHeight+=$(val).outerHeight()}));var open=function(){clearTimeout(offCanvasAnim),animating||($body.addClass("open-overlay-menu").addClass("opening-overlay-menu"),scrolltop=$(window).scrollTop(),window.dispatchEvent(menuOpen),animating=!0,UNCODE.menuOpened=!0,$('body[class*="vmenu-"], body.hmenu-center').length&&$(".menu-hide, .menu-sticky, .menu-transparent").length&&(($body.hasClass("menu-sticky-mobile")||$("#masthead.menu-transparent").length&&!UNCODE.isMobile)&&$(".main-header > .vmenu-container").css({position:"fixed",top:$(".menu-container").outerHeight()+UNCODE.bodyBorder+UNCODE.adminBarHeight+"px"}),$("body.menu-offcanvas").length?($(".menu-container:not(.sticky-element):not(.grid-filters)").css({position:"fixed"}),$(".vmenu-container.menu-container:not(.sticky-element):not(.grid-filters)").css({position:"fixed",top:UNCODE.menuMobileHeight+UNCODE.bodyBorder+UNCODE.adminBarHeight+"px"})):$(".menu-hide, .menu-sticky").length&&UNCODE.wwidth>=960&&$(".menu-sticky").length&&$(".menu-container:not(.sticky-element):not(.grid-filters)").css({position:"fixed"})),$("body.hmenu-center").length&&(!UNCODE.isMobile&&$(".menu-hide, .menu-sticky").length||UNCODE.isMobile&&$(".menu-sticky-mobile").length)&&$(".menu-container:not(.sticky-element):not(.grid-filters)").css({position:"fixed",top:UNCODE.menuMobileHeight+UNCODE.bodyBorder+UNCODE.adminBarHeight+"px"}),$box.addClass("open-items"),$el_transp.length&&$("body.menu-mobile-transparent").length&&$el_transp.addClass("is_mobile_open"),$("body").hasClass("menu-mobile-off-canvas")?animating=!1:(btn.classList.add("close"),$box.animate({height:elHeight},600,"easeInOutCirc",function(){animating=!1,stickyMobile||$box.css("height","auto")})),$menuBlock.length&&UNCODE.animateSubInside($menuBlock))},close=function(){clearTimeout(offCanvasAnim),animating||(window.dispatchEvent(menuClose),animating=!0,UNCODE.menuOpened=!1,$("body").hasClass("menu-mobile-off-canvas")||(btn.classList.remove("close"),btn.classList.add("closing")),$box.addClass("close"),requestTimeout(function(){$box.removeClass("close"),$box.removeClass("open-items"),btn.classList.remove("closing"),$el_transp.length&&$el_transp.removeClass("is_mobile_open")},500),$body.removeClass("opening-overlay-menu"),$("body").hasClass("menu-mobile-off-canvas")?(animating=!1,offCanvasAnim=setTimeout(function(){$body.removeClass("open-overlay-menu"),$menuBlock.length&&UNCODE.animateSubInside($menuBlock,!0)},1e3)):$box.animate({height:0},{duration:600,easing:"easeInOutCirc",complete:function(elements){$(elements).css("height",""),animating=!1,$('body[class*="vmenu-"]').length&&UNCODE.wwidth>=960&&$(".main-header > .vmenu-container").add(".menu-container:not(.sticky-element):not(.grid-filters)").css("position","relative"),$body.removeClass("open-overlay-menu"),$menuBlock.length&&UNCODE.animateSubInside($menuBlock,!0)}}))};check=UNCODE.menuOpened?close():open()}}),$("html").on("click",function(event){$("body").hasClass("menu-mobile-off-canvas")&&UNCODE.wwidth<960&&UNCODE.menuOpened&&event.clientXUNCODE.mediaQuery&&($("body.vmenu-offcanvas-overlay").length?$(event.currentTarget).hasClass("off-close")?($(event.currentTarget).removeClass("off-close"),requestTimeout(function(){window.dispatchEvent(menuClose)},500)):($(event.currentTarget).addClass("off-close"),window.dispatchEvent(menuOpen)):$(event.currentTarget).hasClass("close")?($(event.currentTarget).removeClass("close"),$(event.currentTarget).addClass("closing"),requestTimeout(function(){$(event.currentTarget).removeClass("closing"),window.dispatchEvent(menuClose)},500)):($(event.currentTarget).addClass("close"),window.dispatchEvent(menuOpen))),$("body").toggleClass("off-opened")}),$("body").on("click.menu-off-canvas-mobile",function(e){if($(window).width()>UNCODE.mediaQuery&&$("body.menu-offcanvas.vmenu-offcanvas-overlay.off-opened").length){var $vMenuCont=$("#masthead .vmenu-container"),$close_menu=$(".uncode-close-offcanvas-overlay",$vMenuCont),vmenu_h=parseFloat($vMenuCont.outerHeight()),vmenu_w=parseFloat($vMenuCont.outerWidth()),vmenu_off=$vMenuCont.offset(),vmenu_l=parseFloat(vmenu_off.left),vmenu_t=parseFloat(vmenu_off.top),vmenu_r=vmenu_l+vmenu_w,vmenu_b=vmenu_t+vmenu_h,close_h=parseFloat($close_menu.outerHeight()),close_w=parseFloat($close_menu.outerWidth()),close_off=$close_menu.offset(),close_l=parseFloat(close_off.left),close_t=parseFloat(close_off.top),close_r=close_l+close_w,close_b=close_t+close_h;(!(e.clientX>vmenu_l&&e.clientXclose_l&&e.clientX0&&UNCODE.wwidth>=UNCODE.mediaQuery||$(".menu-mobile-animated").length>0&&UNCODE.wwidth li, .menu-sticky .menu-container .menu-smart > li, .menu-hide.menu-container .menu-smart > li, .vmenu-container .menu-smart > li, .uncode-menu-additional-text").each(function(index,el){var transDelay=index/20+.1;$("body").hasClass("menu-mobile-centered")&&$(window).width() ul",$firstNav),setCTA,appendCTA=function(){return!0},appendSocials=function(){return!0},appendSplit=function(){return!0};($body.hasClass("menu-offcanvas")||$body.hasClass("menu-overlay")||$body.hasClass("hmenu-center-split"))&&$cta.length&&($ulCta=$("> ul",$cta),$ulCta.parent().addClass("mobile-hidden").addClass("tablet-hidden"),appendCTA=function(){UNCODE.wwidth li",$_smartSocial).each(function(){var $li=$(this);if(!$li.hasClass("mobile-hidden"))return $_smartSocial.removeClass("mobile-hidden"),!1;$_smartSocial.addClass("mobile-hidden")}),$("> li",$_smartSocial).each(function(){var $li=$(this);if(!$li.hasClass("tablet-hidden"))return $_smartSocial.removeClass("tablet-hidden"),!1;$_smartSocial.addClass("tablet-hidden")})});if(($body.hasClass("hmenu-center-split")||$body.hasClass("menu-overlay-center")||$body.hasClass("menu-offcanvas")||$body.hasClass("vmenu"))&&$socials.length){$ulSocials=$("> ul",$socials).addClass("menu-smart-social"),$body.hasClass("hmenu-center-split")?$navLast=$(".menu-horizontal-inner .navbar-nav-last",$menuCont):$navLast=$(".navbar-nav-last",$vMenuCont);if(!$navLast.length){var _navLast=$('